package com.deepwiki.model;

import java.time.LocalDateTime;

/**
 * 文档数据模型
 */
public class Document {

    private String id;
    private String warehouseId;
    private String description;
    private String localPath; // 本地代码路径
    private String status;
    private LocalDateTime lastUpdate;
    private Long likeCount;
    private Long commentCount;

    public Document() {
        this.lastUpdate = LocalDateTime.now();
        this.likeCount = 0L;
        this.commentCount = 0L;
    }

    public Document(String id, String warehouseId, String localPath) {
        this();
        this.id = id;
        this.warehouseId = warehouseId;
        this.localPath = localPath;
    }

    // Getters and Setters
    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getWarehouseId() {
        return warehouseId;
    }

    public void setWarehouseId(String warehouseId) {
        this.warehouseId = warehouseId;
    }

    public String getDescription() {
        return description;
    }

    public void setDescription(String description) {
        this.description = description;
    }

    public String getLocalPath() {
        return localPath;
    }

    public void setLocalPath(String localPath) {
        this.localPath = localPath;
    }

    public String getStatus() {
        return status;
    }

    public void setStatus(String status) {
        this.status = status;
    }

    public LocalDateTime getLastUpdate() {
        return lastUpdate;
    }

    public void setLastUpdate(LocalDateTime lastUpdate) {
        this.lastUpdate = lastUpdate;
    }

    public Long getLikeCount() {
        return likeCount;
    }

    public void setLikeCount(Long likeCount) {
        this.likeCount = likeCount;
    }

    public Long getCommentCount() {
        return commentCount;
    }

    public void setCommentCount(Long commentCount) {
        this.commentCount = commentCount;
    }

    @Override
    public String toString() {
        return "Document{" +
                "id='" + id + '\'' +
                ", warehouseId='" + warehouseId + '\'' +
                ", localPath='" + localPath + '\'' +
                ", status='" + status + '\'' +
                '}';
    }
} 